﻿using AutoMapper;
using B.S.BaseData.Api.Write.Applicantion.Command.HospitalCommand;
using B.S.BaseData.Api.Write.Applicantion.Command.HospitalTwoCommand;
using B.S.BaseData.Api.Write.Applicantion.Command.RBAC;
using B.S.BataBase.Domain.AI;
using B.S.BataBase.Domain.DTO;
using B.S.BataBase.Domain.Hosp;
using B.S.BataBase.Domain.RBAC;

namespace B.S.BaseData.Api.Write
{
    public class MyMapper:Profile
    {
        public MyMapper()
        {
            CreateMap<CreatePermissionCommand,PermissionsModel>().ReverseMap();
            CreateMap<UpdatePermissionCommand, PermissionsModel>().ReverseMap();
            CreateMap<RoleModel, RoleDTO>();

            CreateMap<PatientAddCommand,PatientModel>();
            CreateMap<PatientUpdateCommand, PatientModel>();

            CreateMap<HistoryOfMedicalVisitsAddCommand, HistoryOfMedicalVisitsModel>();
            CreateMap<HistoryOfMedicalVisitsUpdateCommand, HistoryOfMedicalVisitsModel>();

            //轮播图
            CreateMap<CarouselImageAddCommand, CarouselImage>();
            CreateMap<CarouselImageUpdateCommand, CarouselImage>();

            //科室
            CreateMap<DepartmentAddCommand, Department>();
            CreateMap<DepartmentUpdateCommand, Department>();

            //医院
            CreateMap<HospitalAddCommand, Hospital>();
            CreateMap<HospitalUpdateCommand, Hospital>();
        }
    }
}
